import http from "@/http/index";

 export default {

    insert: {
         name: "新增采购单",
         url: "/api/po",
         call: async function (params: any = {}){
            return await http.post(this.url, params)
        }
    },
    update: {
        name: "采购单修改",
        url: "/api/po",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    select: {
        name: "采购单查找",
        url: "/api/po",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    manage: {
        name: "审核采购单",
        url: "/api/po/manage",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    selectItem: {
        name: "采购单明细",
        url: "/api/po/item",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    }

}